const express = require('express');
const userRoutes = require('./user.route');
const deviceRoutes = require('./device.route');
const actionRoutes = require('./action.route');
const uploadRoutes = require('./upload.route');

const router = express.Router(); // eslint-disable-line new-cap

/** GET /health-check - Check service health */
router.get('/health-check', (req, res) =>
  res.send('OK')
);

router.use('/user', userRoutes);
router.use('/device', deviceRoutes);
router.use('/action', actionRoutes);
router.use('/upload', uploadRoutes);

module.exports = router;